#include "prog.h"
#define NUM 101


void progressbar(){
  char arr[NUM];
  memset(arr,'\0',NUM);
  char Load[] = "|-/\\";

  int i = 0;
  for(i = 0;i<NUM;i++)
  {
    arr[i] = '=';
    
    if(i+1 != NUM) arr[i+1] = '>'; 
    printf("[%-101s][%d%%][%c]\r",arr,i,Load[i%4]);
    fflush(stdout);
    usleep(100000);
  }
  printf("\n");

}

